package gui;

import gui.obu.AbstractObuPanelImpl;
import gui.obu.ObuWelcomePanel;
import gui.obu.ObuWelcomePanelImpl;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class ObuMain {

	public static void main(String[] args) {
		Display display = Display.getDefault();
		Shell view = new Shell(display);
		
		AbstractObuPanelImpl window = new ObuWelcomePanelImpl(display, view);
		((ObuWelcomePanel) window).open();
		
		while (!view.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}

		window.closeDatabase();
		display.dispose();
	}
}
